package com.stylefeng.guns.core.common.constant.state;

/**
 * 股东性质
 *
 * @author fengshuonan
 * @Date 2017年1月10日 下午9:54:13
 */
public enum KpMethod {

    A(1, "GetStockList"),B(2,"GetBusinessByDay"),C(3,"BusinessGroupInfo"),D(4,"GetIndexFengKList"),E(5,"GetIndexPlate"),
    F(6,"GetZSIndexPlate"),G(7,"DelStock"),H(8,"AddStockList"),J(9,"SelStockRank"),APP_A(10,"ZhiShuStockList_W8"),APP_B(11,"RealRankingInfo");

    int code;
    String method;

    KpMethod(int code, String method) {
        this.code = code;
        this.method = method;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public static String valueOf(Integer value) {
        if (value == null) {
            return "";
        } else {
            for (KpMethod ms : KpMethod.values()) {
                if (ms.getCode() == value) {
                    return ms.getMethod();
                }
            }
            return "";
        }
    }
}
